
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>智慧农业-溯源平台</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="物联网智慧农业" />
<meta name="keywords" content="智慧农业" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="${basePath}/resources/common/css/mobile/bootstrap.css">
<!-- jQuery -->
<script src="${basePath}/resources/common/js/mobile/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="${basePath}/resources/common/js/mobile/bootstrap.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
	<script src="${basePath}/resources/common/js/mobile/respond.min.js"></script>
	<![endif]-->

</head>
<body>
	<div id="fh5co-main" role="main">

		<div class="container">

			<figure class="fh5co-img">
				<img src="${basePath}/resources/common/images/fwnz.jpg" alt=""
					class="img-responsive animate-box">
			</figure>
			<div class="row" style="margin-top: 20px;">
				<div class="col-md-8 fh5co-heading">
					<input id="fwm" type="text" class="form-control" placeholder="请输入防伪码">
				</div>
				<div class="col-md-4 fh5co-heading" style="margin-top: 20px;">
					<button type="button" class="btn btn-success" style="width: 100%" onclick="queryFWM();">防伪查询</button>
				</div>
			</div>
			<div id="fh5co-footer" style="margin-top: 20px;">
				<p>
					1、找到包装盒上二维码防伪标签，刮开涂层
				</p>
				<p>
					2、在上方输入框中输入防伪码，点击提交查询
				</p>
			</div>

		</div>

	</div>

</body>



<script>
    function queryFWM(){
    	var fwm = $("#fwm").val();
    	if(fwm){
    		$.ajax({
    	        type: "GET",
    	        url: '${basePath}/mobile/fwch/'+fwm,
    	        dataType: "json",
    	        success: function(data){
    	        	if(data.result){
    	        		alert(data.msg);
    	        	}else{
    	        		alert(data.msg);
    	        	}
    	        }
    	    });
    	}
    }

</script>


</html>

